import { ApiProperty } from "@nestjs/swagger";
import { IsOptional, IsString, MinLength } from "class-validator";

export class UpdateUserDto {
  @IsString()
  @MinLength(2)
  @IsOptional()
  @ApiProperty({
    required: false,
    description: "昵称",
  })
  name?: string;

  @IsString()
  @MinLength(6)
  @IsOptional()
  @ApiProperty({
    required: false,
    description: "密码",
  })
  password?: string;
}
